package com.xxx.system.mapper;


import com.xxx.system.domain.Role;
import com.xxx.system.query.RoleQuery;

import java.util.List;

public interface RoleMapper {
    //新增
    void addRole(Role role);
    //修改
    void updateRole(Role role);
    //删除
    void deteleById(Long id);
    //查询单个
    Role findOne(Long id);
    //查询所有
    List<Role> findAll();

    List<Role>queryPage(RoleQuery roleQuery);

    void deleteRoleByIds(Long[] ids);

    List<Long> findPs(Long id);

    List<Long> findMs(Long id);

    //维护中间表的方法

    void addRoleAndPs(Role role);

    void addRoleAndMs(Role role);

    void delRoleAndPs(Long id);

    void delRoleAndMs(Long id);

    void delPatchRoleAndPs(Long[] ids);

    void delPatchRoleAndMs(Long[] ids);
}
